<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>佐心，教家长做父母</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="assets/css/amazeui.min.css">
    <link rel="stylesheet" href="assets/css/style.css?v=2.3">
    <link rel="stylesheet" href="assets/css/index.css?v=2.3">
    <script>
    	    /** 
     * 返回前一页（或关闭本页面） 
     * <li>如果没有前一页历史，则直接关闭当前页面</li> 
     */  
    function goBack(){  
        if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ // IE  
            if(history.length > 0){  
                window.history.go( -1 );  
            }else{  
                location.href="${ctx}/index.jsp";
            }  
        }else{ //非IE浏览器  
            if (navigator.userAgent.indexOf('Firefox') >= 0 ||  
                navigator.userAgent.indexOf('Opera') >= 0 ||  
                navigator.userAgent.indexOf('Safari') >= 0 ||  
                navigator.userAgent.indexOf('Chrome') >= 0 ||  
                navigator.userAgent.indexOf('WebKit') >= 0){  
      
                if(window.history.length > 1){  
                    window.history.go( -1 );  
                }else{  
                    location.href="${ctx}/index.jsp";
                }  
            }else{ //未知的浏览器  
                window.history.go( -1 );  
            }  
        }  
    }  
    </script>
</head>
<body class="bg-gray">
<header data-am-widget="header" class="am-header am-header-default am-header-fixed am-border-bottom">
    <div class="am-header-left am-header-nav">
        <a  onclick="goBack();"  >
            <i class="icon_8"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        付款
    </h1>

</header>
<section class="am-padding-bottom-sm" id="amz-main" data-tag="css-nav">
    <div class="bg-white  ">
        <!--咨询师-->
        <div class="am-g  am-padding-top-sm ">
            <div class=" am-u-sm-12 am-list-main box am-padding-left-sm">
                <div class="width-75px">
                    <a  class="">
                        <img class="img-65" src="${counselor.personHead}"/>
                    </a>
                </div>
                <div class="box-1">
                    <div class="am-list-item-hd font-color-13">
                       ${counselor.counseName}
                    </div>

                    <div class="font-12  font-color-15">
                        ${counselor.proName}
                    </div>
                    <div class="font-14  font-color-15">
                        擅长方向： ${counselor.goodDirection}
                    </div>
                </div>
            </div>
        </div>
        <!--咨询介绍-->
        <div class=" am-padding-bottom-sm">
            <div class="report_item bg-gray am-margin-left-sm am-margin-right-sm am-margin-top-sm ">
                <div class="am-g   am-padding-top-sm   am-padding-bottom-sm">
                    <div class=" am-u-sm-12 am-list-main font-color-13 box">
                        <i class="icon_12"></i>

                        <div class="width-50px">
                            <div class="icon_9-1"></div>
                            <div class="line-1">
                                <i class="circle-1"></i>
                            </div>
                            <div class="line-2">
                                <i class="circle-1"></i>
                            </div>
                            <div class="line-2">
                                <i class="circle-1"></i>
                            </div>
                        </div>
                        <div class="box-1">
                            <div class="am-list-item-hd font-color-13 am-padding-top-sm am-text-truncate">
                                咨询方式：${yuyueTemp.counseType}
                            </div>
                            <div class="font-14  margin-top-9 ">
                                预约时间：${yuyueTemp.bookTime}
                            </div>
                            <div class="font-14   margin-top-9">
                                购买时长：<span class="font-color-17">${yuyueTemp.buyTime}分钟</span>
                            </div>
                            <div class="font-14   margin-top-9">
                                总价：<span class="font-color-17">&yen;
                  <c:if test="${yuyueTemp.buyTime==15}">
                  		${counselor.servicePrice15}
                  </c:if>
                  <c:if test="${yuyueTemp.buyTime==50}">
                  		${counselor.servicePrice40}
                  </c:if>
                                </span>
                            </div>

                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>

    <!--付款方式-->
    <div class="bg-white am-margin-top-sm am-padding-bottom-sm">
        <div data-node="pay_type"  class="am-list-news am-list-news-default  am-margin-bottom-xs font-color-13">

            <div class="am-list-news-bd">
                <ul class="am-list">

                    <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left padding-li-3 type">

                        <div class=" am-u-sm-11 am-list-main">
                            <div class="box">
                                <div class="width-40px ">
                                    <img class="img-30" src="assets/images/icon/public/icon_10.png"/>
                                </div>
                                <div class="box-1">
                                    <h3 class="am-list-item-hd padding-top-3">
                                        微信支付
                                    </h3>
                                </div>
                            </div>

                        </div>
                        <div class=" am-u-sm-1 ">
                            <div class="icon-gouxuan cur"></div>
                        </div>
                    </li>
                    <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left padding-li-3 type">
                        <div class=" am-u-sm-11 am-list-main">
                            <div class="box">
                                <div class="width-40px ">
                                    <img class="img-30" src="assets/images/icon/public/icon_11.png"/>
                                </div>
                                <div class="box-1">
                                    <h3 class="am-list-item-hd padding-top-3">
                                        银行卡绑定
                                    </h3>
                                </div>
                            </div>

                        </div>
                        <div class=" am-u-sm-1 ">
                            <div class="icon-gouxuan "></div>
                        </div>
                    </li>

                </ul>
            </div>
        </div>


        <div class="am-container am-margin-top-sm">
            <div class="btn-4 word-space-2 padding-left-0" onclick="window.location.href='addYuyueOrder?yuyueId=${yuyueTemp.id}'">确认支付</div>
        </div>

    </div>



</section>

<div class="am-modal am-modal-prompt" tabindex="-1" id="my-prompt">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">问题反馈</div>
        <div class="am-modal-bd">
            <textarea rows="3" class="mark_content am-modal-prompt-input" placeholder="对本产品有什么建议，敬请告知，谢谢！"></textarea>
        </div>
        <div class="am-modal-footer">
            <span class="am-modal-btn" data-am-modal-cancel>取消</span>
            <span class="am-modal-btn" data-am-modal-confirm>提交</span>
        </div>
    </div>
</div>


<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script>
    $(function () {
        $('#btnfeedback').on('click', function () {
            $('#my-prompt').modal({
                relatedTarget: this,
                onConfirm: function (e) {
                    alert('你输入的是：' + e.data || '')
                },
                onCancel: function (e) {
//                    alert('不想说!');
                }
            });
        });
    });
</script>
<script>


    $("[data-node='pay_type']").find(" li.type").click(function () {
        $("[data-node='pay_type']").find(" li.type .icon-gouxuan").removeClass("cur");
        $(this).find(".icon-gouxuan").addClass("cur");
    });

</script>
</body>
</html>